<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:text="${title}">title</title>
    <link rel="stylesheet" href="/css/milligram.min.css"/>
</head>
<body>

<div style="width: 320px;">
    <form action="/chat/login" method="post">
        <fieldset>
            <label for="uid">UID</label>
            <input placeholder="UID" id="uid" name="uid" type="text">
            <input class="button-primary" value="login" type="submit">
        </fieldset>
    </form>
</div>

<script type="text/javascript">
    var uid = document.getElementById('uid');
    uid.value = Math.ceil(Math.random() * 1000);
</script>
</body>
</html>